<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div class="t_bar2">${param.title }${param.unit }</div>
<table id="fundInfo" class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1"    style="table-layout: fixed;word-break: break-all; word-wrap: break-word">
	<tr   class="t_tr"><td colspan="2" rowspan="2" align="center">经费来源</td>
	<td rowspan="2" align="center">经费预算</td>
	<td  colspan="4" align="center">其中</td>
	</tr>
	<tr   class="t_tr">
	<td  align="center"><span name="budget/statyear1">${param.statYear }</span>年</td>
	<td  align="center"><span name="budget/statyear2">${param.statYear+1 }</span>年</td>
	<td  align="center"><span name="budget/statyear3">${param.statYear+2 }</span>年</td>
	<td  align="center"><span name="budget/statyear4">${param.statYear+3 }</span>年</td>
	</tr>
	<tr>
		<td  align="center" colspan="2">来源合计</td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_1_0" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_1_1" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_1_2" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_1_3" /></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/total_invest_1_4" /></td>
	</tr>
	<tr>
		<td  align="center" rowspan="6" >其中</td>
		<td>省财政拨款</td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_2_0" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_2_1" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_2_2" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_2_3" /></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/total_invest_2_4" /></td>
	</tr>
	<tr>
		<td >设区市、县财政配套</td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_3_0" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_3_1" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_3_2" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_3_3" /></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/total_invest_3_4" /></td>
	</tr>
	<tr>
		<td>主管部门配套</td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_4_0" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_4_1" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_4_2" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_4_3" /></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/total_invest_4_4" /></td>
	</tr>
	<tr>
		<td>单位自筹</td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_5_0" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_5_1" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_5_2" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_5_3" /></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/total_invest_5_4" /></td>
	</tr>
	<tr>
		<td >银行贷款</td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_6_0" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_6_1" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_6_2" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_6_3" /></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/total_invest_6_4" /></td>
	</tr>
	<tr>
		<td >其它</td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_7_0" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_7_1" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_7_2" /></td>
		<td  align="center"><x:out select="$xmlData/data/budget/total_invest_7_3" /></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/total_invest_7_4" /></td>
	</tr>
	<tr  class="t_tr">
	<td colspan="2" align="center">经费支出</td>
	<td align="center">申请省财政经费预算</td><td colspan="4"   align="center">计算依据</td>
	</tr>
	<tr>
	    
	    <td  align="center" colspan="2">经费总额</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest0/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest0/total_detail" /></td>
	</tr>
	<tr>
	<td rowspan="19" align="center">其中</td>
	    <td ><strong>一、研究经费</strong></td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest1/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest1/total_detail" /></td>
	</tr>
	<tr>
	    <td >（一）直接费用</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest2/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest2/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>1．设备费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest3/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest3/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>2．材料费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest4/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest4/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>3．测试化验加工费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest5/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest5/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>4．燃料动力费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest6/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest6/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>5．差旅费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest7/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest7/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>6．会议费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest8/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest8/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>7．国际合作与交流费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest9/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest9/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>8．出版/文献/信息传播/知识产权事务费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest10/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest10/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>9．劳务费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest11/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest11/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>10．专家咨询费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest24/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest24/total_detail" /></td>
	</tr>
<%-- 	<tr>
	    <td ><span style="margin-left:25px;"></span>11．基本建设费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest12/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest12/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:40px;"></span>（1）房屋建筑物购建</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest13/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest13/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:40px;"></span>（2）专用设备购置</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest14/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest14/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:40px;"></span>（3）基础设施建设</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest15/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest15/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:40px;"></span>（4）大型修缮</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest16/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest16/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:40px;"></span>（5）信息网络建设</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest17/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest17/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:40px;"></span>（6）其他基本建设支出</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest18/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest18/total_detail" /></td>
	</tr> --%>
	<tr>
	    <td ><span style="margin-left:25px;"></span>11．其他</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest19/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest19/total_detail" /></td>
	</tr>
	<tr>
	    <td >（二）间接费用</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest20/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest20/total_detail" /></td>
	</tr>
	
	
	
		<tr>
	    <td ><span style="margin-left:25px;"></span>1．管理费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest30/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest30/total_detail" /></td>
	</tr>
	<tr>
	    <td ><span style="margin-left:25px;"></span>2．绩效支出</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest31/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest31/total_detail" /></td>
	</tr>
	
	<tr>
	    <td >（三）不可预见费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest21/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest21/total_detail" /></td>
	</tr>
	<tr>
	    <td >二、中间试验（制）费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest22/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest22/total_detail" /></td>
	</tr>
	<tr>
	    <td >三、产业化开发经费</td>
	    <td  align="center"><x:out select="$xmlData/data/budget/invest_detail/invest23/total" /></td>
	    <td colspan="4" align="left"><x:out select="$xmlData/data/budget/invest_detail/invest23/total_detail" /></td>
	</tr>
</table>
<br/>
<div class="t_bar2">
	${param.title2 }
</div>
	<table  id="grant_schedule"class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1"    style="table-layout: fixed;word-break: break-all; word-wrap: break-word">
			<thead >
					<tr style="organization_finances/financeborder:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="30px">序号</th>
						<th class="TblHead" align="center"  width="225px">年度</th>
						<th class="TblHead" align="center"  width="120px">合计</th>
						<th class="TblHead" align="center"  width="120px">省拨</th>
						<th class="TblHead" align="center"  width="120px">贷款</th>
						<th class="TblHead" align="center"  width="120px">自筹</th>
						<th class="TblHead" align="center"  width="120px">其他</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/grant_schedule/schedule" var="schedule">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
							 <x:out select="$schedule/@seq_no"/> 
						</td>
						<td align="center">&nbsp;
							 <x:out select="$schedule/year"/> 
						</td>
						<td align="center">&nbsp;
							 <x:out select="$schedule/total"/>
						</td>
						<td align="center">&nbsp;
							 <x:out select="$schedule/grant_of_province"/>
						</td>
						<td align="center">&nbsp;
							 <x:out select="$schedule/grant_of_loan"/>
						</td>
						<td align="center">&nbsp;
							 <x:out select="$schedule/grant_of_own"/>
						</td>
						<td align="center">&nbsp;
							 <x:out select="$schedule/grant_of_other"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
					<br/>
<script type="text/javascript">
$(function() {
	$("#grant_schedule tr:even").addClass("li_1");
	$("#grant_schedule tr:odd").addClass("li_2");
	$("#fundInfo").find("tr:even").addClass("li_1");
	$("#fundInfo").find("tr:odd").addClass("li_2");
});

function countFund(idStart, countStr, totalStr) {

	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		var fund = $("#" + idStart + indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = "0";
		count = ((parseFloat(count)*10000 + parseFloat(fund)*10000)/10000).toFixed(4);
	}

	count = formatNumber(count.toString(), 9, 4, 2);// 格式化金额
	$("#" + idStart + totalStr).val(count);
}

</script>
	